package com.qboot.system.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.*;
import com.qboot.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


/**
 * 字典选项 实体类
 *
 * @author Tellsea
 * @date 2022-12-17
 */
@Data
@ApiModel("字典选项")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class SysDictItem extends BaseEntity {

    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 字典ID
     */
    @Excel(name = "字典ID")
    private Long dictId;
    /**
     * 字典编码
     */
    @Excel(name = "字典编码")
    private String dictCode;
    /**
     * 选项名称
     */
    @Excel(name = "选项名称")
    private String dictLabel;
    /**
     * 选项值
     */
    @Excel(name = "选项值")
    private String dictValue;
    /**
     * 表格样式
     */
    @Excel(name = "表格样式")
    private String listClass;
    /**
     * 扩展样式
     */
    @Excel(name = "扩展样式")
    private String cssClass;
    /**
     * 描述
     */
    @Excel(name = "描述")
    private String description;
    /**
     * 是否启用 1-是 2-否
     */
    @Excel(name = "是否启用 1-是 2-否")
    private Integer isEnable;
    /**
     * 排序
     */
    @Excel(name = "排序")
    private Integer sort;
    /**
     * 数据状态 1-正常 2-删除
     */
    @TableLogic
    @ApiModelProperty(hidden = true)
    @TableField(fill = FieldFill.INSERT)
    private Integer deleteStatus;
}
